<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String psid = request.getParameter("psid");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>图片展示</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>CSS/style.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.css">
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/external/jquery/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.js"></script>
  </head>
  
  <body>
    	<div id="head-search">
   	 		<span class="home-path"></span>
   	 		<span class="path-font">学习交流管理&nbsp;&nbsp;>>&nbsp;&nbsp;图片秀&nbsp;&nbsp;>>&nbsp;&nbsp;图片展示</span>
   		</div>
   		<div class="mainbody">
   			<div class="divrow"><span id="title"></span></div>
   			<div id="piclist" class="leftss"></div>
   		</div>
  </body>
  	<script>
  	$(function(){
			$.ajax({
				url:"<%=basePath%>getPictureShowByID",
				type:'get',
				data:{"psid":<%=psid%>},
				dataType:'json',
				timeout:1000,
				success:function(datas){
					//alert(datas);
					var json = eval(datas);
					$("#title").html(json.pstheme);
						//var psid = json[index].psid;
						//var pstheme = json[index].pstheme;
						//var psaddition = json[index].psaddition;
						//$("#pslist").html($("#pslist").html()+"<div class='div'><a href='<%=basePath%>PS/picture.jsp?psid="+psid+"'>"+pstheme+"</a></div>");
					
				}
			});
			$.ajax({
				url:"<%=basePath%>getPictureByPsidAction",
				type:'get',
				data:{"psid":<%=psid%>},
				dataType:'json',
				timeout:1000,
				success:function(datas){
					//alert(datas);
					var json = eval(datas);
					$.each(json,function(index){
						var picpath = json[index].picPath;
						
						$("#piclist").html($("#piclist").html()+"<div class='divrow'><img class='picturecss' src='<%=basePath%>"+picpath+"'/></div>");
					
						
					});
						
				}
			});
		});
  	</script>
</html>
